<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "showpic".
 *
 * @property integer $showpicid
 * @property integer $product_id
 * @property integer $show_id
 * @property integer $auction_id
 * @property integer $user_id
 * @property string $url
 */
class Showpic extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'showpic';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['product_id', 'auction_id', 'user_id', 'url'], 'required'],
            [['url'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'showpicid' => '图片id',
            'product_id' => '产品id',
            'show_id' => '晒单id',
            'auction_id' => '竞拍id',
            'user_id' => '用户id',
            'url' => '图片地址',
        ];
    }
}
